//
//  UIButton+SMWebCache.m
//  smzdm_lib
//
//  Created by tom on 16/5/19.
//  Copyright © 2016年 sm. All rights reserved.
//

#import "UIButton+SMWebCache.h"
#import "UIButton+WebCache.h"
@implementation UIButton (SMWebCache)

- (void)sm_setBackgroundImageWithURL:(NSURL *)url forState:(UIControlState)state placeholderImage:(UIImage *)placeholder {
    [self sd_setBackgroundImageWithURL:url forState:state placeholderImage:placeholder];
}

- (void)sm_setBackgroundImageWithString:(NSString *)str forState:(UIControlState)state placeholderImage:(UIImage *)placeholder {
    [self sm_setBackgroundImageWithURL:[NSURL URLWithString:str] forState:state placeholderImage:placeholder];
}

- (void)sm_setImageWithURL:(NSURL *)url forState:(UIControlState)state placeholderImage:(UIImage *)placeholder {
    [self sd_setImageWithURL:url forState:state placeholderImage:placeholder];
}
- (void)sm_setImageWithString:(NSString *)str forState:(UIControlState)state placeholderImage:(UIImage *)placeholder {
    [self sm_setImageWithURL:[NSURL URLWithString:str] forState:state placeholderImage:placeholder];
}

@end
